package com.ruoyi.durian.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单模块-开票历史记录表
 * @TableName ll_invoice_history
 */
@TableName(value ="ll_invoice_history")
public class LlInvoiceHistory implements Serializable {
    /**
     * 开票id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 开票的时间
     */
    private Date startTime;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 公司名称
     */
    private String firmName;

    /**
     * 发票的代码
     */
    private String firmCode;

    /**
     * 发票的号码（用户手机）
     */
    private String phone;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 抬头类型     1 公司        2个人
     */
    private Integer type;

    /**
     * 发票抬头
     */
    private String title;

    /**
     * 税号
     */
    private String code;

    /**
     * 发票内容
     */
    private String content;

    /**
     * 总金额
     */
    private BigDecimal allPrice;

    /**
     * 邮箱地址
     */
    private String email;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 是否删除
     */
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 开票id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 开票id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 开票的时间
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * 开票的时间
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /**
     * 订单id
     */
    public String getOrderId() {
        return orderId;
    }

    /**
     * 订单id
     */
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    /**
     * 公司名称
     */
    public String getFirmName() {
        return firmName;
    }

    /**
     * 公司名称
     */
    public void setFirmName(String firmName) {
        this.firmName = firmName;
    }

    /**
     * 发票的代码
     */
    public String getFirmCode() {
        return firmCode;
    }

    /**
     * 发票的代码
     */
    public void setFirmCode(String firmCode) {
        this.firmCode = firmCode;
    }

    /**
     * 发票的号码（用户手机）
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 发票的号码（用户手机）
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 用户id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 用户id
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 抬头类型     1 公司        2个人
     */
    public Integer getType() {
        return type;
    }

    /**
     * 抬头类型     1 公司        2个人
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 发票抬头
     */
    public String getTitle() {
        return title;
    }

    /**
     * 发票抬头
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 税号
     */
    public String getCode() {
        return code;
    }

    /**
     * 税号
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 发票内容
     */
    public String getContent() {
        return content;
    }

    /**
     * 发票内容
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 总金额
     */
    public BigDecimal getAllPrice() {
        return allPrice;
    }

    /**
     * 总金额
     */
    public void setAllPrice(BigDecimal allPrice) {
        this.allPrice = allPrice;
    }

    /**
     * 邮箱地址
     */
    public String getEmail() {
        return email;
    }

    /**
     * 邮箱地址
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 是否删除
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 是否删除
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LlInvoiceHistory other = (LlInvoiceHistory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getFirmName() == null ? other.getFirmName() == null : this.getFirmName().equals(other.getFirmName()))
            && (this.getFirmCode() == null ? other.getFirmCode() == null : this.getFirmCode().equals(other.getFirmCode()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getAllPrice() == null ? other.getAllPrice() == null : this.getAllPrice().equals(other.getAllPrice()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getFirmName() == null) ? 0 : getFirmName().hashCode());
        result = prime * result + ((getFirmCode() == null) ? 0 : getFirmCode().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getAllPrice() == null) ? 0 : getAllPrice().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", startTime=").append(startTime);
        sb.append(", orderId=").append(orderId);
        sb.append(", firmName=").append(firmName);
        sb.append(", firmCode=").append(firmCode);
        sb.append(", phone=").append(phone);
        sb.append(", userId=").append(userId);
        sb.append(", type=").append(type);
        sb.append(", title=").append(title);
        sb.append(", code=").append(code);
        sb.append(", content=").append(content);
        sb.append(", allPrice=").append(allPrice);
        sb.append(", email=").append(email);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", createTime=").append(createTime);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
